import request from "@/utils/request";
// 积分商城

export function get_point_index(params) {
  return request({
    url: "/point/index",
    method: "get",
    params
  });
}

// 新增活动
export function get_point_add(data) {
  return request({
    url: "/point/add",
    method: "post",
    data: data
  });
}

// 编辑
export function get_point_edit(data) {
  return request({
    url: "/point/edit",
    method: "post",
    data: data
  });
}

// 编辑
export function get_point_changeStatus(data) {
  return request({
    url: "/point/changeStatus",
    method: "post",
    data: data
  });
}
// 删除
export function get_point_delete(data) {
  return request({
    url: "/point/delete",
    method: "post",
    data: data
  });
}
// 获取下架商品
export function get_get_undercarriage(params) {
  return request({
    url: "/point/getGoodsSpu",
    method: "get",
    params
  });
}

// 兑换记录
export function get_getlogs(params) {
  return request({
    url: "/point/getLogs",
    method: "get",
    params
  });
}

// 导出
export function exportLog(data) {
  return request({
    url: "/point/exportLog",
    method: "post",
    responseType: "blob",
    data: data
  });
}
